<html><head><title>Calculating Time Differences</title><meta name="filename" content="text/scalc/guide/calc_timevalues"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
p.P1{
}
</style></head><body>
<p class="P1"/>
<p class="Head1"><help:key-word value="calculating with times" tag="kw68069_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="calculating time differences" tag="kw68069_2" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="calc_timevalues" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68069">Calculating Time Differences</help:link></help:to-be-embedded></p>
<p class="Paragraph">If you want to calculate time differences, e.g. the time between 23:30 and 01:10 in the same night, use the following formula:</p>
<p class="Paragraph">=(B2<A2)+B2-A2</p>
<p class="Paragraph">The later time is B2 and the earlier time is A2. The result of the example is 01:40, i.e. 1 hour and 40 minutes.</p>
<p class="Paragraph">In the formula, an entire 24-hour day has a value of 1 and one hour has a value of 1/24. The logical value in parentheses is 0 or 1, corresponding to 0 or 24 hours. The result returned by the formula is automatically issued in time format due to the sequence of the operands.</p>